#include <iostream>

using namespace std;


int main1()
{
	char ch;
	cin >> ch;

	for (int i = 0; i < 5; i++)
	{
		if (i == 2)
		{
			cout << ch;
			break;
		}
		cout << " ";
	}
	cout << endl;

	for (int i = 0; i < 5; i++)
	{
		if (i != 0 && i != 4)
		{
			cout << ch;
			continue;
		}
		cout << " ";
	}
	cout << endl;

	for (int i = 0; i < 5; i++)
			cout << ch;
	cout << endl;


	return 0;
}
